import mx.collections.ArrayCollection;
import model.Character;
			
[Bindable]
public var chapters:ArrayCollection = new ArrayCollection(); /*= new ArrayCollection([{label:"Chapter 1", data:"Blah blah blah"},
														   {label:"Chapter 2", data:"Blah blah blah"},
														   {label:"Chapter 3", data:"Blah blah blah"}]);*/
																	   	   
[Bindable]
public var characters:ArrayCollection = new ArrayCollection();; /* = new ArrayCollection([{label:"Jamin Hall", data:"Blah blah blah"},
														     {label:"Maryn Amanda the awesome", data:"Blah blah blah"},
															 {label:"Audrey", data:"Blah blah blah"}]);*/
															 
public function createChapter():void{	
	main.selectedChild = chapterEditor;		
	currentEditObject = new Chapter();
	chapterEditor.chapter = currentEditObject;
	chapters.addItem(currentEditObject);
}

public function createCharacter():void{	
	main.selectedChild = characterEditor;		
	currentEditObject = new Character();
	characterEditor.character = currentEditObject;
	characters.addItem(currentEditObject);
}